﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using LogisticsVision.Prototype.JsRemoteInvoke.Inventory;
namespace LogisticsVision.Prototype.JsRemoteInvoke.Inventory.Portal
{
    /// <summary>
    /// Summary description for CalculatorWSService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    [System.Web.Script.Services.ScriptService]
    public class CalculatorWSService : System.Web.Services.WebService,  ICalculator
    {
        #region ICalculator Members
        [WebMethod]
        public int Add(int x, int y)
        {
            return x + y;
        }

        [WebMethod]
        public int Multiple(int x, int y)
        {
            return x * y;
        }

        #endregion
    }
}
